3,580 questions with C++-related tags

Sort by: Updated
0 answers

Why is my panning drifting in Direct 2D?

I'm going through a windows tutorial for Direct 2D drawing a small picture on a render target and I decided to try to add pan and zoom capabilities. All is working mostly fine but I'm having an issue with the pan. My drawing is supposed to move in sync…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,580 questions
asked 2024-06-07T10:29:35.57+00:00
Forrest Crawford 0 Reputation points
0 answers

Why is my panning in Direct 2D drifting at the edge of the window?

I'm going through a windows tutorial for Direct 2D drawing a small picture on a render target and I decided to try to add pan and zoom capabilities. All is working mostly fine but I'm having an issue with the pan. My is supposed to move in sync with…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,463 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,580 questions
asked 2024-06-07T01:27:46.7733333+00:00
Forrest Crawford 0 Reputation points
commented 2024-06-07T10:14:26.1166667+00:00
Forrest Crawford 0 Reputation points
1 answer

Database credential saved in memory.

Hello team, While testing thick client application. I dumped the memory from task manager and process hacker tools and I got database credentials. So How can I mitigate this issues in C++, C# and .net application. Please suggest and explain in details so…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,496 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,441 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,580 questions
asked 2024-06-05T06:44:07.43+00:00
Mashuk Raza 0 Reputation points
edited a comment 2024-06-07T09:38:19.0833333+00:00
Minxin Yu 10,456 Reputation points Microsoft Vendor
1 answer

Cannot find how to get to this "Project Defaults" section "in the General pane in the Property Pages."

On this page in the documentation, it describes a "Project Defaults" section on some ephemeral "Debug Property Pages" page in some properties setting dialog, shown below: However, the documentation gives no explanation…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,580 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
982 questions
asked 2021-12-13T21:16:25.753+00:00
Grant Robertson 1 Reputation point
commented 2024-06-07T06:23:22.6233333+00:00
Captain ''Soap'' MacTavish 0 Reputation points
2 answers

setting visual studio variables, such as VC_LibraryPath_x64 (AGAIN)

I asked this question previously. I received two replies, both of which suggested that the poster had not carefully read my question (and one of which provided incorrect and irrelevant feedback). So, I am reposting. To be clear. A) I have never…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,736 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,580 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
982 questions
asked 2021-07-10T20:52:37.04+00:00
Ed Broughton 31 Reputation points
answered 2024-06-06T16:00:26.0033333+00:00
Bruce (SqlWork.com) 58,856 Reputation points
4 answers

Visual Studio 2015 & 2017 doesn't recognize std

Hello, I've written simple piece of code which compiles and works perfectly on any other program which can compile and run C++, but when I try to run it from VS 2015 on my laptop or on VS 2017 from my other laptop, it won't build it - I get an error…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,736 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,580 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,823 questions
asked 2020-08-25T04:58:53.277+00:00
Elinor Ginzburg 106 Reputation points
commented 2024-06-06T15:02:10.12+00:00
Ms. Gerda Hoppe Jr 0 Reputation points
2 answers

How to use DrvDeviceCapabilities in winddiui.h (WITH winspool.lib added but LNK2019 unresolved external symbol STILL occured )

Function DrvDeviceCapabilities(winddiui.h) should be used if I want to identify a printer's color capability according to this link. But there is always a link error (LNK2019 unresolved external symbol ) though I added winspool.lib to Library Directories…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,580 questions
Windows Driver Kit (WDK)
Windows Driver Kit (WDK)
A set of Microsoft tools that are used to develop, test, and deploy Windows drivers.
27 questions
asked 2024-06-06T01:41:05.85+00:00
GanDalf LeBron 0 Reputation points
answered 2024-06-06T10:05:25.2+00:00
RLWA32 41,696 Reputation points
1 answer

Mitigation for Dll hijacking

Hello Team, I found dll injection in c#, .net and c++thick client applications. But to perform dll here I needed admin access. in this case I had admin access. So what will be the standard mitigation to prevent dll injection after even get the admin…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,496 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,441 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,580 questions
asked 2024-06-03T09:12:59.99+00:00
Mashuk Raza 0 Reputation points
commented 2024-06-06T08:26:12.35+00:00
Jiale Xue - MSFT 40,746 Reputation points Microsoft Vendor
0 answers

NotifyIpInterfaceChange function (netioapi.h) does not notify on manual DNS changes

I work on the c-ares open source asynchronous DNS library (https://c-ares.org) and we have recently added automatic configuration reloading when we detect a network configuration change has occurred. We get notifications properly when network…

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,899 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,463 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,580 questions
asked 2024-06-05T16:21:55.43+00:00
Brad House 0 Reputation points
edited a comment 2024-06-06T02:38:50.7066667+00:00
Xiaopo Yang - MSFT 11,741 Reputation points Microsoft Vendor
1 answer

[Asan] Getting assert on launch of application "The application was unable to start correctly(0xc0000142). Click OK to close the application."

[Asan] Getting assert on launch of application "The application was unable to start correctly(0xc0000142). Click OK to close the application." Assert Image mentioned below: image_assert.png Resolved Call Stack mentioned in Microsoft Visual…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,736 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,580 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
958 questions
asked 2024-06-05T06:15:15.6366667+00:00
Ashutosh Kumar Verma 0 Reputation points
answered 2024-06-05T08:53:08.8533333+00:00
Anna Xiu-MSFT 27,016 Reputation points Microsoft Vendor
1 answer

The QueryVirtualMemoryInformation function fails in 32-bit mode because the WIN32_MEMORY_REGION_INFORMATION structure is defined incorrectly.

For the record, I have Windows 11, "Version 10.0.22631 Build 22631". The WIN32_MEMORY_REGION_INFORMATION structure is defined in "memoryapi.h" as the following: typedef struct WIN32_MEMORY_REGION_INFORMATION { PVOID…

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,899 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,463 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,580 questions
asked 2024-06-04T11:29:47.0133333+00:00
RoflCopter4 10 Reputation points
commented 2024-06-05T08:28:25.9233333+00:00
RLWA32 41,696 Reputation points
1 answer

How to detect scale factor in Windows 10 in C++

I am trying to detect the display scale factor in Windows 10 in C++. Below is the code I am using. //Code to detect scale void getDisplayScale(double &h_Scale, double &v_Scale) { //auto activeWindow = GetActiveWindow(); HWND…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,463 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,580 questions
asked 2022-05-23T06:55:03.21+00:00
Azeem Cv 1 Reputation point
commented 2024-06-05T06:18:53.14+00:00
Xiaopo Yang - MSFT 11,741 Reputation points Microsoft Vendor
0 answers

Device Manager does not show 'Bus Reported Device Description'

Hi, i need the device description for my APP, but unfortunately appropriate API calls does not return anything and by investigating the device manager it does not show up either. I am searching the USB enumeration list until the correct vid pid and a…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,580 questions
Windows Hardware Performance
Windows Hardware Performance
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,564 questions
Windows Driver Kit (WDK)
Windows Driver Kit (WDK)
A set of Microsoft tools that are used to develop, test, and deploy Windows drivers.
27 questions
asked 2024-06-04T06:54:08.5766667+00:00
MO_660 0 Reputation points
edited the question 2024-06-04T09:20:19.4166667+00:00
Minxin Yu 10,456 Reputation points Microsoft Vendor
0 answers

Windows API's CreateFile with CFile gives invalid path error if used drives created with SUBST

A drive is created for a folder using SUBST command. We have a Windows application which reads contents of the and performs some operations. Application does not give any error when read the file path is from actual drive. But when try to read from drive…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,463 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,580 questions
asked 2024-05-03T12:58:05.9266667+00:00
Dada Khalandhar Gooty 0 Reputation points
commented 2024-06-03T11:17:36.65+00:00
Dada Khalandhar Gooty 0 Reputation points
2 answers

How to Detect Initial DPI changes in a WPF Application while Scaling according to Per Monitor Aware in Variable Dynamic Screen Resolution?

In daily life we have to deal with a lot of different types of display size it may be mobile or may be a 4k monitor. The screen resolution vary from display to display. Here another important factor is DPI (Display per inch) which is mainly a scaling…

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,899 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,691 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,441 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,580 questions
asked 2024-05-27T23:46:16.7233333+00:00
MERUN KUMAR MAITY 531 Reputation points
commented 2024-06-03T05:02:40.46+00:00
Hongrui Yu-MSFT 495 Reputation points Microsoft Vendor
3 answers

How do I display a transparent custom bitmap on a toolbar button in a Win32 C++ app?

I'm trying to add a button with a custom transparent bitmap to a toolbar in my Win32 C++ app. I'm using the following code to create and populate the toolbar. toolBar = CreateWindowEx(0, TOOLBARCLASSNAME, nullptr, WS_CHILD, 0, 0, 0, 0, hwnd,…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,463 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,580 questions
asked 2022-02-26T01:00:40.19+00:00
DaveF 21 Reputation points
answered 2024-06-03T00:16:13.9233333+00:00
Ruth Haephrati 10 Reputation points
1 answer One of the answers was accepted by the question author.

Application crash even on a try catch block

When i comment out the line GetViewsByZOrder i get the following exception: Exception thrown at 0x00007FF96E36EE19 (rpcrt4.dll) in : 0xC0000005: Access violation reading location 0x00000000094F0122. On the line if (collection->GetViewForHwnd(hwnd,…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,580 questions
asked 2024-05-30T03:16:00.1533333+00:00
Yanis 20 Reputation points
edited a comment 2024-05-31T18:57:22.8066667+00:00
Yanis 20 Reputation points
1 answer

Porting SetTransform function in DirectX 9 to DirectX 11 or 12

Iam porting an existing project with DirectX 9 to DirectX 11 or 12, I am trying to port the function SetTransform from DirectX 9, there is no reference found in DirectX 11 or 12, please kindly suggest where to find the above function and how to define…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,463 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,580 questions
asked 2024-05-22T03:54:58.4266667+00:00
Balineni Rohith Sai 0 Reputation points
commented 2024-05-31T06:33:38.1466667+00:00
Xiaopo Yang - MSFT 11,741 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

GDI+ PrivateFontCollection::AddMemoryFont failed to load fonts

GDI+ PrivateFontCollection::AddMemoryFont fails to load fonts and returns a status of InvalidParameter = 2. I made sure that my resources were correct as I also saved them locally, but the ttf fonts are correct. What is the problem please? My code and…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,463 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,580 questions
asked 2024-05-30T01:03:33.4266667+00:00
RL Chen 210 Reputation points
edited a comment 2024-05-30T09:46:02.8466667+00:00
Jeanine Zhang-MSFT 9,346 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Disable windows shortcuts for high contrast and mouse keys

I need to block keyboard shortcuts "alt + shift + prtscr" and "alt + shift + numlk". How to do it with LL Keyboard hook? Help much appreciated !

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,580 questions
asked 2024-04-07T12:00:16.2666667+00:00
Ash 60 Reputation points
commented 2024-05-30T04:37:28.8066667+00:00
Ash 60 Reputation points